// Press Shift twice to open the Search Everywhere dialog and type `show whitespaces`,
// then press Enter. You can now see whitespace characters in your code.
public class Main {
    public static void main(String[] args) {
        // Press Alt+Enter with your caret at the highlighted text to see how
        // IntelliJ IDEA suggests fixing it.
        int m = 8,item = m,i=1;
        long sum =0;
        for(i=1,sum=0,item=m;i<=10;i++){
            sum= sum+item;
            item =item*10+m;
        }
        System.out.println(sum);


    }
}